
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/topic.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />


<title>标签<{$tile}>页</title>

<script>

function check_submit(tag_id)
{
  if($('#tag_name').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('标签名称不能为空！');
      $("#tag_name").focus();
      return false;
  }
  $.get("/wondershare/tag.php?action=index", { jax_type: 'is_repeat', tag_name: $('#tag_name').val(),tag_id:parseInt(tag_id),w_type:$("#tag_web").val()},
  function(data){
  if(data > 0)
  {
  
	alert('标签名称不能重复！');
    $("#tag_name").focus();
     return false;
   }else
   {
    $("#theForm").submit();
   }
  });
  
  
}
</script>
</head>

<body  >
<h1>

<span class="action-span1">
<a href="/wondershare/article.php?action=index&w_type=<{$w_type}>"><{$web_info}>网站文章信息</a> >
<a href="/wondershare/tag.php?action=index&w_type=<{$w_type}>"><{$web_info}>标签列表</a> >
</span>
<span id="search_id" class="action-span1">  标签<{$tile}> </span>
<div style="clear:both"></div>
</h1>
<div id="tabbar-div">
      <p>
     
      </p>
    </div>
<div id="tabbody-div"  style=" width:1100px;">
      <form  name="theForm"  id="theForm" method="post" action="/wondershare/tag.php?action=index&w_type=<{$w_type}>" enctype="multipart/form-data" >
        <!-- 最大文件限制 -->
        <input type="hidden" value="2097152" name="MAX_FILE_SIZE">
        <!-- 通用信息 -->
        <table align="center" width="90%" id="general-table">
          <tbody>
		  <tr>
            <td class="label">标签名称：</td>
            <td><input type="text" size="30" style="float:left;color:;" value="<{$tag_info.tag_name|escape}>" name="tag_name" id="tag_name">
           
            <span class="require-field">*</span></td>
          </tr>
		   <tr>
            <td class="label">点击数量：</td>
            <td><input type="text" size="30" style="float:left;color:;"  <{if $tag_info.click_count}> value="<{$tag_info.click_count}>" <{else}>	 
			value="0" <{/if}> name="click_count" id="click_count">
           
            </td>
            <tr>
            <td class="label">热门标签：</td>
            <td>
			<select name="is_hot"  id="is_hot">
	<option value="1"  <{if $tag_info.is_hot == 1}> selected="selected"  <{/if}> >热门标签</option>
	<option value="0" <{if $tag_info.is_hot == 0}> selected="selected"  <{/if}> >一般标签</option></select>
            </td>
          </tr>
		  
		   <!--<tr>
            <td class="label">分类类型：</td>
            <td>
			<select name="tag_type" id="tag_type">
	<option value="1"  <{if $tag_info.tag_type == 1}> selected="selected"  <{/if}> >专题分类</option>
	<option value="2" <{if  $tag_info.tag_type  == 2}> selected="selected" <{/if}> > 产品分类</option></select>
            </td>
          </tr>
		  
		   <tr>
            <td class="label">网站类型：</td>
            <td>
			<select name="tag_web" id="tag_web">
	<option value="1" <{if $tag_info.tag_web == 1}> selected="selected"  <{/if}> >wondershare网站</option>
	<option value="0"  <{if $tag_info.tag_web == 2}> selected="selected"  <{/if}> >其它网站</option></select>
            </td>
          </tr>-->
		  
		
		

        </tbody></table>

  

        <div  style="margin-left:380px; margin-top:20px;">
          <input type="hidden"  name="tag_id" value="<{$tag_info.tag_id}>">
		  
	<input type="hidden"  name="tag_type"  id="tag_type" value="1" >
	<input type="hidden"  name="tag_web"  id="tag_web" value="<{$w_type}>">
	
          <input type="button"   class="button" value="<{$tile}> " name="sub_from" id='sub_from' onclick="check_submit(<{if $tag_info.tag_id >0 }><{$tag_info.tag_id}><{else}>0<{/if}>);">
          <input type="reset" class="button" value=" 重置 ">
        </div>
        <input type="hidden" value="<{$form_act}>" name="act" >
      </form>
    </div>



	


</body>
</html>